#ifndef QMYTOOLS_H
#define QMYTOOLS_H

#include <QObject>

#include "tools_global.h"
#include "qtoolgraphicsscene.h"
#include "../Controller/centralController.h"
class TOOLS_EXPORT QMyTool: public QObject
{
	
    Q_OBJECT
public:
	
    explicit QMyTool(QObject *parent = 0);
    ~QMyTool();
    bool SetContainer(QToolGraphicsScene * container);
	bool SetController(centralController* controller);
    virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent * contextMenuEvent)=0;
    virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent)=0;
    virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent)=0;
    virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent)=0;
    virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * mouseEvent )=0;
	virtual void Initialize(){};
	virtual void Finalize(){};
protected:
    QToolGraphicsScene *Container;
	centralController* controller;
signals:
    
public slots:
    

};

#endif // QMYTOOLS_H
